classmates = ['Michael', 'Bob']
print(classmates[0])
print(classmates[1])
classmates.append('Tom')
print(classmates)
classmates.insert(1, 'Jack')
print(classmates)
print(classmates.pop())
print(classmates.pop(1))
classmates[0] = 'Awen'
L = ['Apple', 123, True]
s = ['python', 'java', ['asp', 'php'], 'schame']
print(len(s))
print(s[2])
s[0] = L
print(s)
# tuple
classmate = ('Micheal', 'Bob', 'Tracy')
print(classmate)
t = ()
print(t)
a = (1)
print(a)
b = (1,)
print(b)
c = ('a', 'b', ['A', 'B'])
print(c[2][0])
# 列表可以嵌套任何东西
